//
//  RootViewController.h
//  ViewAnimationTest
//
//  Created by 성주 이 on 5/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TreeView.h"
#import "LeftTreeView.h"
#import "SampleBookViewWallpaper.h"
#import "SampleBookViewFlooring.h"

@interface ZinMainViewController : UIViewController<TreeViewSelectDelegate,LeftTreeViewSelectDelegate>
{
    BOOL _isExpanded;
    
    UIView* _leftMenuBar;
    UIView* _mainStage;
    UIView* _rightMenuBar;

    int treeSelectIndex;
    UIView* CurrentView;
    int CurrentViewIndex;
    SampleBookViewWallpaper *sampleBookView ;
    SampleBookViewFlooring *sampleBookViewFlooring;
    UIView* secDepthView;
    UIView* secDepthViewWallpaper;
   
    
    UIImage* rootButtonImg; 
    UIImage* subButtonLastImg; 
    UIImage* rootButtonPressedImg;
    //left
    UIScrollView* leftMenuScroll;
    NSMutableArray* leftMenuButtonList;
    //right
    UIScrollView* rightMenuScroll;
    NSMutableArray* rightMenuButtonList;
    int nIndexRoot;
    int nIndexSub;
    int categoryValue;
    
    int nIndexRootWallpaper;
    int nIndexSubWallpaper;
    int categoryValueWallpaper;
}

@property (nonatomic, retain) UIView* _leftMenuBar;
@property (nonatomic, retain) UIView* _mainStage;
@property (nonatomic, retain) UIView* _rightMenuBar;
@property (nonatomic, retain) UIView* CurrentView;
@property (nonatomic, retain) UIView* secDepthView;
@property (nonatomic, retain) UIView* secDepthViewWallpaper; 
@property (nonatomic, retain) UIScrollView* leftMenuScroll;
@property (nonatomic, retain) UIScrollView* rightMenuScroll;

@property (nonatomic, retain) NSMutableArray* leftMenuButtonList;
@property (nonatomic, retain) NSMutableArray* rightMenuButtonList;

@property (nonatomic, retain) UIImage* rootButtonImg; 
@property (nonatomic, retain) UIImage* rootButtonPressedImg;
@property (nonatomic, retain) UIImage* subButtonLastImg; 



-(void)buttonPressed:(id)sender;
-(void)SearchButtonPressed:(id)sender;
-(void)mainStageView;

//Top버튼
-(void)zinButtonPressed:(id)sender;
-(void)MatchingButtonPressed:(id)sender;
-(void)CalButtonPressed:(id)sender;
-(void)SetButtonPressed:(id)sender;
-(void)HelpButtonPressed:(id)sender;


@end
